<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@	page import="java.util.ArrayList"%>
<%@	page import="kau.dao.*"%>
<%@	page import="kau.vo.*"%>

<html>
<head>
<title>강의계획표</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8" />

<script type="text/javascript">
	/*function addNotice(){
	 var NowCntNodes=eval($(".CurriPlanNode:last").attr('id').replace("CurriPlanNode_",""));
	 if(NowCntNodes<1){NowCntNodes=0;}
	 var AddCntNodes=NowCntNodes+1;
	 $('#CurriPlanArea').append('<div class="CurriPlanNode" id="CurriPlanNode_'+AddCntNodes+'"></div>');
	 $('#CurriPlanNode_'+AddCntNodes).append(AddCntNodes+'주차 ');
	 $('#CurriPlanNode_'+AddCntNodes).append('<input type="text" name="inputContent['+AddCntNodes+']" style="width:500px" value="" />');
	 $('#CurriPlanNode_'+AddCntNodes).append('<a href="#none" onclick="delNotice(\'CurriPlanNode_'+AddCntNodes+'\');"> [삭제 ]</a>');
	 }
	 function delNotice(id){
	 if(confirm('정말 삭제 하시겠습니까?\n삭제를 하시면 데이터도 같이 삭제됩니다.')){
	 $("#"+id).remove();
	 }
	 }
	 */
</script>
<style type="text/css">
<!--
@import url("css/style.css");
-->
</style>

<style type="text/css">
#info {
	font-family: 맑은 고딕, dotum, sans-serif, bold;
	font-size: 13px
}
</style>


</head>
<body>

	<div id="info">
		<br>
		<table>
		<tr>
			<td>
				 <img src="/nems/course/curriculum/img/plan.png" /> 
			</td>
			<td>
				<font
			style="font-weight: bold; color: #005700; text-align: left; font-size: 20px;">강의계획서</font>
			</td>
		</tr>
		</table>
	</div>
	<br>
	<form action="update_curriculum.curriculum" method="post"
		style="width: 80%;">
		<input type="hidden" name="custId" value="${sessionScope.custId}" />
		<input type="hidden" name="courseId" value="${sessionScope.courseId}" />
		<input type="hidden" name="subjectName"
			value="${curriculum.subjectName}" /> <input type="hidden"
			name="lecturerName" value="${curriculum.lecturerName}" /> <input
			type="hidden" name="weeks" value="${curriculum.weeks}" /> <input
			type="hidden" name="hourperWeek" value="${curriculum.hourperWeek}" />

		<center>
			<table style="width: 90%" id="newspaper-a"
				summary="2007 Major IT Companies' Profit">
				<tr>
					<td style="border: 1px gray solid;" width="55px">교과목</td>
					<td style="border: 1px gray solid;" width="150px">${curriculum.subjectName}</td>
					<td style="border: 1px gray solid;" width="55px">강사명</td>
					<td style="border: 1px gray solid;" width="120px">${curriculum.lecturerName}</td>
				</tr>

				<tr>
					<td style="border: 1px gray solid;">주</td>
					<td style="border: 1px gray solid;">${curriculum.weeks}주</td>
					<td style="border: 1px gray solid;">주당시간</td>
					<td style="border: 1px gray solid;">${curriculum.hourperWeek}시간</td>
				</tr>
				<tr>
					<td style="border: 1px gray solid;">강의개요</td>
					<td colspan="3" style="border: 1px gray solid;"><textarea
							rows="2" style="width: 100%" name="overview">${curriculum.overview}</textarea></td>

				</tr>

				<tr>
					<td style="border: 1px gray solid;">평가방법</td>
					<td colspan="3" style="border: 1px gray solid;"><textarea
							style="width: 100%" rows="2" name="evaluation">${curriculum.evaluation}</textarea></td>
				</tr>
				<tr>
					<td style="border: 1px gray solid;">교과서</td>
					<td style="border: 1px gray solid;"><textarea name="textBook"
							style="width: 100%" rows="1">${curriculum.textBook}</textarea></td>
					<td style="border: 1px gray solid;">저자</td>
					<td style="border: 1px gray solid;"><textarea
							style="width: 100%" name="author" rows="1">${curriculum.author}</textarea></td>
				</tr>
				<tr>
					<td style="border: 1px gray solid;">참고도서</td>
					<td style="border: 1px gray solid;"><textarea
							style="width: 100%" name="referenceBook" rows="1">${curriculum.referenceBook}</textarea></td>
					<td style="border: 1px gray solid;">저자</td>
					<td style="border: 1px gray solid;"><textarea
							style="width: 100%" name="referenceAuthor" rows="1">${curriculum.referenceAuthor}</textarea></td>
				</tr>
			</table>

			<table style="width: 90%" id="newspaper-a"
				summary="2007 Major IT Companies' Profit">
				<tr>
					<td width="65px" style="border: 1px gray solid;">주차</td>
					<td style="border: 1px gray solid;">강의내용</td>
				</tr>


				<c:forEach var='curriPlan' varStatus="status"
					items="${requestScope.curriPlanList}">
					<tr>
						<td style="border: 1px gray solid;">${status.count}주차</td>
						<td style="border: 1px gray solid;"><input type="text"
							style="width: 100%" name="inputContent[${status.count}]"
							value="${curriPlan.content}" /></td>


					</tr>
				</c:forEach>
			</table>

			<br/>
		
			<button class="positive" type="submit">
				<img src="admin/images/Edit_Yes.png"
					style="width: 20px; height: 20px" />수정
			</button>
			&nbsp;&nbsp;
			<button class="negative" type="button">
				<img src="cust/img/delete.png"
					style="width: 20px; height: 20px" />취소
			</button>
	</form>

	</center>
</body>
</html>
